import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// Leaflet
import "leaflet/dist/leaflet.css";

// axios
import axios from "./axios/http";
import VueAxios from "vue-axios";

Vue.use(VueAxios, axios);

// 引入element-ui组件和css
import ElementUi from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

Vue.use(ElementUi);

// vuescroll
import vuescroll from "vuescroll";
import "vuescroll/dist/vuescroll.css";

Vue.use(vuescroll);

// date
import "./utils/date";

// util
import utils from "./utils/utils";

Vue.prototype.utils = utils;

// gps
import gps from "./utils/gps";

Vue.prototype.gps = gps;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
